﻿<Page x:Class="ModuleOne.ModuleOneBrowser" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:mb="clr-namespace:MEF_Test.Bricks.MediaBrowser;assembly=MEF-Test.Bricks"
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"      
    Title="ModuleOneBrowser">    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0">Module One Browser</TextBlock>
        <Button Grid.Row="1" Command="BrowseBack" CommandTarget="{Binding ElementName=mediaBrowser}">Up</Button> <!--,RelativeSource={RelativeSource FindAncestor, AncestorType=local:ModuleOneBrowser}}-->
        <mb:MediaBrowser Name="mediaBrowser" Grid.Row="2"  BrowsingProvider="{Binding BrowsingProvider}" ItemTemplateSelector="{Binding BrowserNodeTemplateSelector}" >            
        </mb:MediaBrowser>
    </Grid>
</Page>
